package cn.drew.house.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 租房合同
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ContractInformation {
    private Long ctId;    //合同编号
    private String ctPartyA;    //甲方
    private String ctPartyB;    //乙方
    private String idCardA;     //甲方身份证信息
    private String idCardB;     //乙方身份证信息
    private String ctAddress;       //租赁地址
    @JsonFormat(pattern = "yyyy年MM月dd日")
    private Date ctLeaseTime;     //租赁时间
    private BigDecimal ctRent;      //租金
    private Integer ctPaymentType;       //付款方式：2:支付宝、4：微信、6：网银
    private Integer houseId;     //房屋信息表ID
    @JsonFormat(pattern = "yyyy年MM月dd日")
    private Date ctExpirationTime;        //合同到期时间
    private Integer ctStatus;    //合同状态：4：生效、6：未生效、8：作废

    private HousingInformation housingInformation;
}
